package com.tbgov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统后台用户表
 * </p>
 *
 * @author 1st
 * @since 2024-11-19
 */
@Getter
@Setter
@Schema(name = "User", description = "系统后台用户表")
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "用户名称")
    private String name;
    @Schema(description = "个人照片")
    private String photo;
    @Schema(description = "用户手机号码")
    private String mobilePhone;
    @Schema(description = "密码")
    private String pwd;
    @Schema(description = "部门名称")
    private String department;
    @Schema(description = "职务名称")
    private String job;
    @Schema(description = "权限 0:普通访问 1:后台管理 多个逗号拼接")
    private String power;
    @Schema(description = "注册时间")
    private LocalDateTime createTime;
    @Schema(description = "登录时间")
    private LocalDateTime loginTime;
}
